class MyCollectionEntity {
  String? createTime;
  CollectionHref? href;
  int? id;
  String? infoAuthor;
  String? infoImg;
  String? infoOther;
  String? infoTime;
  String? infoTitle;
  int? type;
  int? status;

  MyCollectionEntity(
      {this.createTime,
      this.href,
      this.id,
      this.infoAuthor,
      this.infoImg,
      this.infoOther,
      this.infoTime,
      this.infoTitle,
      this.type,
      this.status});

  MyCollectionEntity.fromJson(Map<String, dynamic> json) {
    createTime = json['createTime'];
    href =
        json['href'] != null ? new CollectionHref.fromJson(json['href']) : null;
    id = json['id'];
    infoAuthor = json['infoAuthor'];
    infoImg = json['infoImg'];
    infoOther = json['infoOther'];
    infoTime = json['infoTime'];
    infoTitle = json['infoTitle'];
    type = json['type'];
    status = json['status'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['createTime'] = this.createTime;
    if (this.href != null) {
      data['href'] = this.href!.toJson();
    }
    data['id'] = this.id;
    data['infoAuthor'] = this.infoAuthor;
    data['infoImg'] = this.infoImg;
    data['infoOther'] = this.infoOther;
    data['infoTime'] = this.infoTime;
    data['infoTitle'] = this.infoTitle;
    data['type'] = this.type;
    data['status'] = this.status;
    return data;
  }
}

class CollectionHref {
  String? id;
  Map<String, dynamic>? params;
  String? route;

  CollectionHref({this.id, this.params, this.route});

  CollectionHref.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    params = json['params'];
    route = json['route'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['params'] = this.params;
    data['route'] = this.route;
    return data;
  }
}
